home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / utilities / printer / pf_deskjet.lzh / PF / Source / mlo.h < prev    next >
C/C++ Source or Header  |  1991-09-25  |  2KB  |  55 lines

  1. /*---------------------------------------*
  2.  | File: MLO.h - My personal definitions |
  3.  | MLO 880908 - Revised 910925 - v2.04   |
  4.  +---------------------------------------+---------------*
  5.  | This file avoids computer-dependent statements and has|
  6.  | been used with VAX-C, Borland Turbo-C on MS-DOS, and  |
  7.  | Lattice C for AmigaDOS; it looks for the preprocessor |
  8.  | symbols predefined from these compilers (#ifdef VAXC, |
  9.  | __TURBOC__, AMIGA). It worked on MS-DOS with Aztec-C; |
  10.  | should still work there if none of the quoted symbols |
  11.  | is defined for the preprocessor, but was not tested.  |
  12.  *-------------------------------------------------------*/
  13.  
  14. /*--------------------------*
  15.  | Program completion codes |
  16.  *--------------------------*/
  17.  
  18. #ifdef VAXC
  19. #include <ssdef>
  20. #define SYS_NORMAL_CODE SS$_NORMAL
  21. #define SYS_ABORT_CODE  SS$_ABORT
  22. #else
  23. #define SYS_NORMAL_CODE 0
  24. #define SYS_ABORT_CODE  1
  25. #endif
  26.  
  27. /*-------------------*
  28.  | Boolean variables |
  29.  *-------------------*/
  30.  
  31. #define False           0
  32. #define True            1
  33. typedef short int       Boolean;
  34.  
  35. /*--------------------------------------------------*
  36.  | Miscellaneous definitions; some of them from the |
  37.  | Amiga specific include files (<exec/types.h> and |
  38.  | <intuition/intuition.h>).                        |
  39.  *--------------------------------------------------*/
  40.  
  41. #ifndef EXEC_TYPES_H
  42. typedef unsigned char           BYTE;
  43. typedef unsigned long int       ULONG;
  44. typedef unsigned short int      USHORT;
  45. #endif
  46.  
  47. #ifndef INTUITION_INTUITION_H   
  48. #define FOREVER   for (;;)
  49. #endif
  50.  
  51. #define BLANK     ' '
  52. #define NEWLINE   '\n'
  53. #define NIHIL     '\0'
  54. #define TAB       '\t'
  55.